package com.graduation.mapper;

import com.graduation.model.UserEntity;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @Description
 * @Author YaoQi
 * @Date 2018/3/6 23:13
 */
public interface UserMapper {

    /**
     * UserEntity对应的数据库表
     */
    String USER_TABLE_NAME = "WEB_SHOPPING_USER";

    @Select(
            "SELECT ID as userId, USERNAME, PASSWORD, EMAIL, IMAGE FROM " + USER_TABLE_NAME
    )
    List<UserEntity> getUserList();
}
